/**
 * Created by Jan-Home on 2016/11/13 0013.
 */

const webpack = require('webpack');
// 要加两个插件
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');

const packageInfo = require('./package.json');

module.exports = {
	entry: './test/dev.ts',
	output: {
		filename: 'ke-url-dev-'+packageInfo.version+'.js'
	},
	resolve: {
		extensions: ['', '.webpack.js', '.web.js', '.ts', '.tsx', '.js']
	},
	module: {
		loaders: [
			{test: /\.tsx?$/, loader: 'ts-loader'}
		]
	},
	plugins: [
		new webpack.OldWatchingPlugin(),
		new HtmlWebpackPlugin({
			title: packageInfo.name + ' - version ' + packageInfo.version
		})
	]
};